Allow throwing of exception when yiitter is mocked in unit tests