Murdoch confidante in court over hacking scandal