Added tests for RenderContext.