adding tests for rendering plugin views and layouts, fixes #34