unit test fix for #3052 and #3053

Ok @pveentjer. Thanks for your suggestion. I am new to hazelcast and its internal usages :). I will update it tomorrow.