testing model and controller