[WIP] implement the persistence tests

init peristence tests, needed to remove registry injection, cause it makes dependency on symfony, so the managers where set by its name now.