SPARK-3415: modified test class to do dump and load