fixing mocha failing to test