add visitor test case