getInstance test checking for instance equality