Add test for write in closed transport
Improve test coverage
Work on test coverage
Test cover loopless transport
Merge branch 'master' into stream