fix transports adding unit test for transport errors