add hook tests