Fully translate qunit test to mocha