Test coverage for InstancesController