Barr agrees to testify; Democrats question his leadership