Getting mocha tests to pass