Flow tests for obtaining oauth token