remove redundant code from hosting tests