Format tests input, and newline tests