view and model test