move test to mocha