fix #1933 by ensuring that only tests for valid plugins are run