Improve testing of the transport base and asyncio