Automate deletion of Infrastructure and cloud objects

Added test for deletion of infrastructure and cloud objects
I added this here as we were already having  get_hosts(self ) in datastore.py.