Whitaker agrees to testify