Add inheritance to plugins, add basic tests to all plugins