Algorithms testing