Fix synchronize unit test to handle checkmode