Anbangx/debug split repeat

Fix Split Repeat and add more test cases for it.