added test for closing the transport