Adding tests and support for newline characters to the #List function