test_main: add test that runs the command