Fixes #432 - Using a setTimeout stub can stop test suite from continuing - closes gh-433