Fix comments
Copy main doc block
improve test output
port test: test_reads_top_post
Ruby regexp ^ is multiline by default
More test porting
Restructure tests

The previous abstraction did not map well to the ruby test code. This
new one is more flexible.