Test controller and model