Add test for when first/last row is longest values