Add tests for HashGenerator