Added command failure handling for TestIntegration class