Fixed issue #4254 (backport)

This is a backport of #4268 for Hazelcast 3.x maintenance versions.

In addition this backport introduces new eviction tests to this Hazelcast version.