Three in court over alleged plan to attack Jewish community