Former FBI Director James Comey has agreed to testify before the Senate Intelligence Committee.