[App] Add functional tests for authentication.