Fixed a few minor issues in command_tests.py