catch command failed error + add test