Fix Spring configuration for tests