tests: Fix make check in a clean environment

Prelink all the tests that require it with the plugins they need, so
that make check correctly runs even without make install.

Reported-by: Attila Szalay <sasa@balabit.hu>
Signed-off-by: Gergely Nagy <algernon@balabit.hu>