Fix test_resource_uninstall