Add test case for false arg to stream.end()