Remove unused resources in tests