fix test builder instantiation for pyregr tests