Added assert for association of entities