fixes mocha test to pass