Add test for getCTCGroup
WIP: Messy stash to save changes, with updated sync algorithm