add complicated test where 2 files are written