Fixed QUnit test suite.

This pull request covers making the small QUnit test suite run again without errors.

Tested on Chrome.