algoritm testing