Improved test cases, deleting resources created during the process