Add test for a command with lots of logic.