Add unit tests for output functions
Add unit tests for output functions

This commit adds unit tests for output functions to increase test
coverage and ensure their outputs.

mtreinish/stestr,masayukig/stestr,mtreinish/stestr,masayukig/stestr