test: allow environment injection

CI actually sets GIT_COMMIT and BUILD_NUMBER, so they foul up the tests.