Added test of average_gate_fidelity.