Testing pre hooks