Add tests for `.format()` and `.iter_lines()`.