Adding test. Also added get and set methods to hash map.