Test taken from PR #797.
A Nop statement will be inserted into statement lists if there are any trailing comments in the list (which would otherwise not be associated with any node). The pretty printer output currently still contains a superfluous newline.
This changset also adds unit tests for Comments and adds a way to test the pretty printer.