test for the hook