test the model and views