Added factory to Alter_UnitTestCase
Changes in AppModel to pass on tests