Testing rehashing

All works fine, not sure weather to write rehash test case.