Added a better way to test commands.