Refactoring tests unitaires