Added cause validation in toThrow expectation