Allow tests to fail due to missing commands. It is impossible to test otherwise.
Add check for command before executing it (previously would result in OSError from subprocess).
Fixed a spelling error and whitespace error in tests.py.