Fix #3343 async issues in live dev unit tests

Async FTW! Fix for issue #3343.

There were multiple problems with async handling throughout live development that made the unit tests (especially on windows) unpredictable. See inline comments for more info.