[Test] fix plugins: `bin` and `config` only plugins do not install correctly

Related to #7152.

(cherry picked from commit b72f44b)