removes test hook