Adding TEST_BASE environment variable.

The existing TESTBASE isn't always behaving as expected and wasn't
documented to begin with.