fix loading many to many as related
reorganize and improve related tests