Testing standard output instead of file