Add more test-cases for WaitingWriter.Write