Modify unit test to catch issues when no empty line at the end of input.