changed obtaining of sha1 for latest commit for tests