Wrote tests for listinstances