tests: fix signed/unsigned warning

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

tests: fix signed/unsigned warning

Reviewed-by: Christophe Courtaut <christophe.courtaut@gmail.com>