added exception testing for funcs