init with local base model

initialize the model and unit test for model