Fix contributed by Steve South that enabled him to write asynchronous Jasmine tests.
adding test for the async testing bug fix #1047
Merge pull request #1047 from BladeRunnerJS/async-jasmine-fix

Asynchronous Jasmine test bug fix