Test for model and controller