Addes test cases for REPEAT