primitifs refactoring tests