Add pretest hook to install test packages into fixture.