test the hook