Remove test hook