Added test for repeat