making backend tests work with mocha