review beanDefinitionVisitor, update test cases