Code wont function correctly (GSM Module)

ok so, to test it am I right in thinking I could strip it right back on the breadboard so I only have 5v and gnd from shield connected to + and - rails on BB. then have a wire connected to breadboard in middle going to pin 2. Let the script boot up until it says GSM initialised and then bridge the 5v and the 3 cable so it sends 5v to pin 2 which would simulated the pin going high.