Add cmdline tests