Silenced gcc warnings for tests.

There are a lot of warnings when compiling tests with gcc, about uninitialized variables. This patch fixes most of them.