Added line test and added testing for previous point if isStart.