PR comments - re-factoring

Change definition of validateArguments function to have 3 parameters - add new isInTestMode parameter in order to validate the knownOptions when our tests are executed. The reason is that when we start our tests, process.argv[1] is _mocha and the validation logic is not executed.