Core: Pass total amount of tests to QUnit.begin cb

Fixes #350