Extend hash.c test coverage