Added a test, and enforced Distinct IEnumerable on the UpdateJoins method