Fixed a failed test_autosample due to command TG being set.

All tests passing when run from bin/unit_test