We can't use session_bus_down() in the test since gdocumentportal.c holds a reference to the session bus connection, preventing it from being finalised.