introducing mocha
mocha tests
mocha tests
fix a leak
set timeout
destroy stream when closed
Merge branch 'feature/mocha' into develop