hook tests