remove trailing whitespace
add missing semicolons
remove extra newline
make sure we listen to events on the right objects during tests
remove useless "readable" listeners - these are writable streams
oops, missed one
implement and test .end() on outer flowing through correctly