Added test for render_plugin in edit mode

Fixes #3396