Added test for render_plugin in edit mode
fixed render_plugin when in edit mode