Added JUnit test for CLIParser. Bug fixes for CLIParser.

added JUnit to classpath