Test algo for cutpoints