Fixed some dependency and bean names in unit tests.