Add tests for checking synchronization.