changed order of testing algorithms