refactoring tests add dist