Fixed broken hook tests