related entities test