Added unit tests for command line validations.