Added Passing test for issue

https://github.com/hazelcast/hazelcast/issues/366