Modification of test to represent the new algorithm