added test for file handling