added configuration param 'mock_plugin' to mock the plugin automatically when in test env
use of DirectResponse is now more explicit
the plugin's mock has been simplified as it now has the same constructor signature as its parent
renamed a variable