Better tests for exporting to json