Fix repetition selection spec

Adding and selecting a new iteration can lead to two draws.
added a test for clicking twice on a selected element
test selecting different item deselects the first