fix tests, do nto detect duplicate plugins, add test for double gems use case