finish the corrections in mocha tests