add oauth provider and consumer tests
fix doc