Adding working HashMap with tests.