improve hook spec/isolation