Fix an issue with missing beans in application context in spring-test.