#1 authentication unit tests