Use static CmdLineParser instance where possible in testcmdlineparser.cpp, fixed wrong unit test.