Added authorization code testing.