implemented several file tests, working on issue #7