tests fix
algorithms and jobs refactor