Ex-IMF chief in court