Artificial pancreas tested for patients with Type-2 diabetes