Add test for files

As requested in #59. Adds test for files. This test currently fails at the first write section, but should pass if and when #59 is merged.