More doc and tests for RenderState