rewrited all tests to qunit