Added functional tests for authentication: logging in and logging out.