Improve getHeadRev test slightly

Remove a dead store to a File object, add another assertion and rename
a variable for better clarity.