commands/plugin: fix plugin existence middleware, add tests
commands/plugin: InstallGem tests
commands/plugin: UninstallPlugin tests