Fix qunit tests