Hash: refactor unit tests

See https://github.com/phpseclib/phpseclib/pull/446#discussion_r16031599
Don't want to use parent::testHMAC() here?