Fixed: race conditions in test helper StreamWriter.