Fix 32/64 bit issue in test