added a second failing test to narrow down the problem. Seems that that it is not related to the entities being returned but to the join condition