automaticaly tests working with file output