refactoring test modele publication