Add test for hash_command returning failure