tests: update PATH early from AM_TESTS_ENVIRONMENT and runtest