Tests migrated to mocha/chai

fix

fix