Test for algorithms