make all local variables static in gui2 test wrappers

This can cause segfaults / exceptions depending on compiler options
or platform apparently...

http://www.wesnoth.org/irclogs/2014/05/%23wesnoth-dev.2014-05-21.log