Fix some 32-bit build issues in the tests

When comparing 64-bit types, you need to use tt_[ui]64_op().

Found by Jenkins