tests for log in and log out