can you add a test to make sure the file written is somewhat valid?