Authentication added with tests.