Hash table with constructor and unit tests.