added repository factory UT
removed unneeded setTimeout as the promise do it already
typo
flagged 3 UOW methods as private
generate the uuid of an entity when persisting not committing (otherwise set in cache as undefined)
flag an entity as removed when removal committed to the database
fix the clear as entities variables is a 2 level object, not a simple array
added unit of work UT