refdb tests: use the right variable size Mixing int and size_t through pointers leads to problems in big-endian machines.