Add test case for reproducing Repeat bug