add test to verify that newly referenced orphanes are not invalidated