A federal judge heard testimony Thursday from detainees at Cook County Jail.