added authentication unit tests