fix issue about callback function: it include in try...catch...
implemented some test case by should package.