clean up and added delete test network function