Fixed QUnit test failures