Test deleting a record in a hasMany relationship.