Add unit test to verify output method

The output method was only verified for the part that
handles json output to file, but not the part that
handles text file to console. Adding a test for that.

Change-Id: I36b7cab44d2e443362c85f0b12e5b96d75d905f0
1 file changed