Changed regex to support QUnit 1.12.0

Changed regex to support QUnit 1.12.0 and throw exception if regex
does not match so that users know that tests have been run / not run.