Added test for output printing