Fix hashCode and equals in NamedChestOwner

Added tests for them.