t6050: use test_line_count instead of wc -l