Fixed test getting oauth code url