tests: Fix compilation warning

This commit fixes the code not to generate

  warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

during compilation of serialization_macros_unittest.cc.

Change-Id: Ibbb82e1004a9f0466cf9b4b0c950d55e17babf3a