fix issue with testing bean been register