added test for checking error handling in command chains