Tony Blair testifies in media ethics inquiry