algorithms tests organize
refactor