Hash: refactor unit tests

See https://github.com/phpseclib/phpseclib/pull/446#discussion_r16031599
Good catch. I'm kinda surprised the unit test passed, given that lol