refactoring des tests