Fixed missing replacement for language session cleanup in tests