Added unit test coverage for sync handler