Test fix : The EntityManager should not be flushed within a loop -
seems to be ok