Test with two related entities