Added support for a hash calculator factory
hash calculator factory tests