Fixes #6772: added support for testing of plugins