Unit tests for hashutils