tests: fix signedness compilation warnings

Signed-off-by: Loic Dachary <ldachary@redhat.com>
Merge pull request #3174 from dachary/wip-warning

tests: fix signedness compilation warnings