added mocha back end testing