tests: Add class setting to D-Bus tests