tests: Fixing compilation on 32-bit platform with gcc 4.2.1

Change-Id: Ic36ee35e3fed3f67eea6b0dbd4c7e3316c0cab26