Lowered beget import; added conditions around pretest hook.