tests: Fix use of an unsigned variable as signed
tests: Fix use of an unsigned variable as signed

This code was supposed to be using a signed variable for the comparison,
but accidentally ended up using a signed one (and the wrong abs()
function). Fix that.

Spotted by Clang.

pwithnall/libgdata,pwithnall/libgdata,GNOME/libgdata