changing long to int as it affects 64 bit linux tests