test user_hook