custom handler support `require` && add test

Signed-off-by: TZ <atian25@qq.com>