Adding tests for header parsing
Fix newline creation that was breaking cloud-init usge of bash script