tests: fix compilation warning

Signed-off-by: Loic Dachary <ldachary@redhat.com>