test hook