Replace strlen() by sizeof() in test suite.

We forgot to change our tests when we removed the
efun strlen().
Added simple tests for hash().

Calculate hashes using hash() and compare the results with
the result it should have.