tests/dbus: Move an example callback to dbus helpers and use it

This updates the D-Bus example as well as the tests to the new way
of defining changes.