Fixing threading issue in unit test.
Adding delay after stop
Merge pull request #2 from jordan-dinwiddy/fix-tests-threading

Fixing threading issue in unit test.