test OAuth authentication