fix crash, enable session_id and fix test