Adding tests to detect container in hasMany and belongsTo arrays