tests for cut_line