tests: Add changing of the shared flag to the D-Bus tests