fix compilation warnings

Signed-off-by: Loic Dachary <loic@dachary.org>
Merge pull request #1945 from dachary/wip-warnings

tests: fix signess warning

Reviewed-By: Christophe Courtaut <christophe.courtaut@gmail.com>