Testing the hook