Add a basic unit test.
Add basic test of synchronization.