Entity tests, and actually building the relations for each role