please test that output stream is closed