changes for mocha tests