T2 diabetic vs GD

Hey everyone!

Could anyone tell me if they know why a person who is already a T2 diabetic would take the 1 hr or 3hr gestational diabetes test? Would I not automatically fail it? Help please!!!!