Added testInstanceClient and testAddEventInstanceClient