Some unit tests for logging in and out