The proxy counted one entry fewer than it yields, so it was never equal to a plain map with the same entries. Count both fields and test it.