Updates to InstanceApi. 100% coverage