test-lib: factor out $GIT_UNZIP setup