authentication unit tests