Wait for lab stream to end before completing tests.
Emit an error when the tests fail.
Merge pull request #4 from jagoda/fix-fail

Emit error event for test case failures