Made Unit test more dinamic by using Spring's DI.

The test can now test any class that implements the LoginAuthenticator
interface. We can use the test-context.xml file to create a bean with
the right element to test