* correctly closing the stream now * fixed faulty expectation in trivialTest()