Two retired police officers and a solicitor are accused of perverting the course of justice.