tests/dbus: Remove unused helper functions