Test behaviour for nil or empty objects