add tests on file-handling