Add test of loading self-references using attribute references