Made a test for writing to disk