Hash: refactor unit tests

See https://github.com/phpseclib/phpseclib/pull/446#discussion_r16031599
I am surprised too. There probably are no direct tests. Sha512 covers this
too. Probably it just does not matter in those cases.