make flaky GPX test more stable

* have a longer overall timeout waiting for messages
* finish as early as a terminating message is recognized