test: use unsigned ints to compare against size()

Signed-off-by: Greg Farnum <gfarnum@redhat.com>