converted old test to mocha