test: Link only required plugins for tests

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>