use mocha to run tests

preparing to add support for browser tests