Silenced gcc warnings for tests

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