Add hook tests