fix bug when there is only one test point