[knife-cloud] Refactor rspec tests

I've added changes to make image list, flavor list, group list and network list rspec tests DRY.
@muktaa