test: fix -Wsign-compare warnings

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