Fixed _cleanResourceIdentifier tests