cleaned up gps test
use a wait instead of sleep
Merge pull request #3908 from Jonahss/gpsTest

cleaned up gps test