added tests for writing from multiple threads.