[ticket/1] Validate for new empty line at EOF
[ticket/1] Add tests for validateNewEndLine()