Added tests for _render_parts

This should bring test coverage to 100%.