Added print-lines test

The print-line function is let-over-lambda, the writer is a reference,
although as yet there is no mechanism for changing the writer reference.