test: improve test-udev.c

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>