fix the toThrowWith matcher