Testing file writeing