added tests for sycnhromized primitives.