Adapt tests for plugins