Fixed gap in WriteStreamTest code coverage