Fix bug with new line format string and add simple test bat