Improve some tests.
Some javadocs for rendering.