from errbot.backends.test import TestBot

def plugin_testbot(klass, loglevel):
    testbot = TestBot(loglevel=loglevel)
    testbot.start()
    plug = testbot.bot.plugin_manager.instanciateElement(klass)
    return plug, testbot

from errbot.backends.test import TestBot

def plugin_testbot(klass, loglevel, config=None):
    config = config if config else dict()
    testbot = TestBot(loglevel=loglevel, extra_config=config)
    testbot.start()
    plug = testbot.bot.plugin_manager.instanciateElement(klass)
    return plug, testbot

Add extra configuration option to helper