Test the hook