Hack to fix the notifyDone timeout issue in tests

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.