Adapted qunit test for more recent jQuery versions