Switch from AM_TESTS_ENVIRONMENT to TESTS_ENVIRONMENT to work
with older automake releases.