unit tests for synchronise