Add tests
Don't add a new line after an if at the end of a file