Test that we're cleaning up invalid session