tests & idfactory bearbeitet