Migrate logging tests to gtest.