PR comments - re-factoring tests

Use new optional parameter of validateYargsArguments - isInTestMode, to trigger validation for passed options. Remove process.argv[1] changes from the tests, as they could cause unexpected behavior.