tests to close and reopen stream

test_close_reopen
test_close_reopen_as_producer