Testing file handling