Testing the hooks