Cameron testifies over Murdoch links