test: session: Fix a compiler warning/error.