add test class and add hook.