get-line-type and tests