fixing error in qunit test