unit test for model visitor