added GPS glitch detection to GPS test