migrate qunit tests to mocha/chai