tests for the ThreadedWriter class