ECOM-248 Adding test cases for the exceptions.