testing length p_pre