Remove potential leak
Add test scope for plugin usage to avoid guice binding exception