Teacher in court for inciting hatred