rewrite command line parsing (fixes issue 2434)
enable more tests in UnitTests.cpp