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

Fixes #2235