tests refactor
algorithms test