Not shown in the question above, but the problem was to do with how I invoked Git in the following command (specifically, the "git rev-list" part):
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
Once I had fixed this, the BATS test worked correctly.