[Test] add new algorithm for tests