HugeHashMap override fix and unit test

Not 100% sure about the fix but the current implementation of put method contains a bug. In some cases (as demonstrated by added unit test) the value does not get replaced.