Fixed testOnErrorViaHasNext in issue #383
Removed the unnecessary 'catch' and 'fail'