use pretest hook