refactor des tests