add a hook for plugin to work from nosetests