Add specs for repetition selection

Minimal implementation, more of a playground for testing. The last spec
highlights an issue I'm having.