Changed maven repository for Spring libraries.
Fixed application context for tests.
Closing context in main class