supporting global test function, not just QUnit.test, fixes #4