horizontal line test function