added some test cases to logging in and out