Migrated qunit test to mocha and chai