test getInstances