correcting tests because of the new algorythm