add grammar visitor test