test case isHorizontal method.