[BUG] Add failing test cases for repeats followed by other elements

#7