Export persistance integration

Created a test that verifies the issue. Due to the way I verify the json, it is ignored or else it leaves the file laying around.