add tesing writing to file