Tests that repeat count is properly updated.