Fix test for clearing session