Fix test on platforms where size_t is not 'unsigned long'.