moved main tests to mocha