Add unit test to test add section without lf at EOF