(bug 43530) Add tests for defineTour.

* Add return true for successful calls to gt.defineTour and gt.initGuider.
* Related minor refactoring.

Change-Id: Ib886cdce0bcfa8c253a6287c6f0e89e9725b3d38