clear the gem paths before the test rake tasks so they find previously installed plugins

Fixes #2235
Make the test plugins install throw bundler, so we don't have to install
them every time we run the test (it makes the thing slow). Refactor also
the bundler install task into a single one, making calls to it when
necessary.
make sure the bundler task is just used once while bootstraping tests