Fix configuration for mocha tests