Testing an map for objects