Add tests for LF encoding.