updating test hook