capitests: Set path in TESTS_ENVIRONMENT instead of in tests.c