Added testing for get orphan instances method