Fixed tests that are suspected to be leaking resources.
fixed tests. added after class method that is meant to delete all leaked test resources.