fix getBeanManager for test