Changes to accomodate gaiatest warning testvars setting. Also Exit code adjusted to inform Jankins if a test case fails etc...