Fixed test failures due to timeouts
Add countdown latch to mock stream
One more fix to the tests
Add one more latch
Added option for output tests
One more fix
Corrected test for Mac
Added thread.join
Merge pull request #14 from Alexey1Gavrilov/fix-tests

Fix tests