Better tests for command runs