test pre hooks