testing exceptions for consumer