unittest: use const-ref to get rid of ABI note

GCC notes that parameter passing of overaligned types has changed. I
don't care for passing these parameters here, actually. It's just a
dispatch method, so use const-ref instead to silence the "note".

Signed-off-by: Matthias Kretz <kretz@kde.org>