Fix deprecated practice

Global QUnit assertions are deprecated and will eventually be removed. Use either the assert object passed into test methods or the global QUnit.assert instead.