Remove newlines from compact tests