Added test methods for getAllInstanceEOJ and getEOJWithInstanceCode.