add test for output file
add test for output file