unit test of the model struct