Fixed QUnit test failure