Increase test coverage: Add unit test to the authentication module part 1