t: use test_write_lines() instead of series of 'echo' commands