[PLAT-3761] Refactor of test output report wrappers. (cherry-picking from commit 8bba311c93ad482824d015ea55333d6e8f561efb)