t/test-lib-functions.sh: allow to specify the tag name to test_commit