Use git-rev-parse to determine commit-hash
Improve tests