Add a method to test a hash(cherry picked from commit bbc3577cd9f656d7d45354969b966448c31c4767)
[be2bill] add tests for verifyHash method.