tests: Add helper function to setup single device environment
tests: Add helper function to setup single device environment

Just to make it a bit nicer, no need to assert the number of devices
each time and such.

GNOME/libgudev,GNOME/libgudev,GNOME/libgudev