unit test catch callback errors to errorTest()