tests: fix signed/unsigned warning

Signed-off-by: Loic Dachary <loic-201408@dachary.org>