Flush all streams before exiting from testem ci (#241)
Unit tests for #241
Fix assertion.
Merged in #242 to workaround subprocess output getting truncated because of node core bug <https://github.com/joyent/node/issues/3871>. I removed the contributed tests because I don't think it adds a lot of value.