Fix OAuth tests