Check horizontal and vertical lines in line test.