test with and without beanfactory