Direction change to use mocha for regression testing of api