Rst generation tweaks.
This should now more or less generate valid rst for the test file.