better error message in test code

This makes debugging the test code easier. For example,
while writing a file tree for use by a test case, the
git comand might exit with a nonzero status. It's
helpful then to see what command we were trying to run.