Silence some gcc warnings.
More tests converted to gtest.
Use google style formatting for cpp in tests directory.