added test if obj exists