added test checking access to a removed Ref