It is the first time that a sitting Israeli prime minister has testified in a criminal trial against him