added authentication unit tests.