fixing limit checks for unit tests. <=0 doesn't work for unsigned