use TESTS_ENVIRONMENT instead of AM_TESTS_ENVIRONMENT

since automake 1.11 (shipped with precise) doesn't support
AM_TESTS_ENVIRONMENT