Use AM_TESTS_ENVIRONMENT in Makefile.am so we can safely set TESTS_ENVIRONMENT when running tests (e.g., with valgrind).