Test vectors for trilinear forms when at least one representation is not supercuspidal