tests: Fix build on pre-C99
tests: Fix build on pre-C99

Ensure that the variables are at the top of the block.

https://bugzilla.gnome.org/show_bug.cgi?id=785802

GNOME/at-spi2-core,GNOME/at-spi2-core,GNOME/at-spi2-core