Updating tests to qunit