pre test hook