Add test for repeat