Wrote test testSetRepeat