test a command