The test tries to connect to the session bus, not system bus. Reviewed-by: Simon McVittie <smcv@collabora.com>