cpp: test: gtest/clang formatwriter fixes