TISTUD-4739: fixing failed unit tests on studio3 release branch.
TISTUD-4739: fixing the WriterOutputStreamTest.