fix travis and add dist test