use pretest instead of preinstall