Use gtest functions for comparing hash strings

This prints the mismatched strings if the test failed,
simplifying managing and updating the test suite.
Merge pull request #390 from mstorsjo/gtest-strcmp

Use gtest functions for comparing hash strings