Test for Algorithm