reformat cpp files for unit tests