Migrated all test to mocha