fix deleteByIdentity in RepositoryOnMemory