testfun has to ignore exceptions