test_engine: add test_cmdline_ok() and test_cmdline_fail()