Core: Pass total amount of tests to QUnit.begin callback as totalTests

Fixes gh-350
Closes gh-553