t4122: use test_write_lines from test-lib-functions