Fix logic in setMochaArguments method.