Notify the test runner when tests are complete

This should resolve the notifyDone timeout issue. It is kinda hacky, polling
all tests every 100ms until all are complete, but it seems to work.
Merge pull request #1 from eee-c/master

Hack to fix the notifyDone timeout issue in tests