Add test of the Model and add model in the core api