Create line comparator and added tavish's tests