update tests to use mocha