Fix Qunit tests