Add complete OAuth2 workflow test for all query type as spec.