TC cerate test for exporting to file