Some preparations for integration testing: useful functionality is put
into a separate class, slight search plugin creation refactoring