[server][test] Fix compile time warnings concerned with numerical literal on 32bit

Replace some literals with follwing defined value in glib:

* G_MAXINT32
* G_MININT32