Login action unit tests.

Unit test for the login/authentication action have been written for
both cases: success and failure. A fake application with an in memory
database and a fake global is used and initialized with some YAML test
data located in conf/test-data.yml.