diff --git a/mindplot/src/main/javascript/NodeModel.js b/mindplot/src/main/javascript/NodeModel.js
index 337cda82..2fbf1f06 100644
--- a/mindplot/src/main/javascript/NodeModel.js
+++ b/mindplot/src/main/javascript/NodeModel.js
@@ -379,11 +379,6 @@ mindplot.NodeModel.prototype.getOrder = function()
return this._order;
};
-mindplot.NodeModel.prototype.setFontFamily = function(value)
-{
- this._fontFamily = value;
-};
-
mindplot.NodeModel.prototype.getFontFamily = function()
{
return this._fontFamily;
diff --git a/mindplot/src/test/javascript/ModelMigrationTest.js b/mindplot/src/test/javascript/ModelMigrationTest.js
new file mode 100644
index 00000000..b6d23525
--- /dev/null
+++ b/mindplot/src/test/javascript/ModelMigrationTest.js
@@ -0,0 +1,117 @@
+TestCase("Model Migration Tests",{
+ setUp:function(){
+ mapXml = '';
+ },
+ testModelMigration:function(){
+ ids=[];
+ var domDocument = core.Utils.createDocumentFromText(mapXml);
+
+ var betaSerializer = new mindplot.XMLMindmapSerializer_Beta();
+ var betaMap = betaSerializer.loadFromDom(domDocument);
+
+ var serializer = mindplot.XMLMindmapSerializerFactory.getSerializerFromDocument(domDocument);
+ var mindmap = serializer.loadFromDom(domDocument);
+
+ //Assert that the new model is Pela
+ assertEquals(mindplot.ModelCodeName.PELA, mindmap.getVersion());
+
+ //Assert same number of branches
+ var betaBranches = betaMap.getBranches();
+ var branches = mindmap.getBranches();
+ assertEquals(betaBranches.length, branches.length);
+
+ //Assert same nodes recursively
+ //Since Id can change let's assume the order is the same
+ for(var i = 0; i