test write to file