moved tests to mocha