tests for logging in / out