Add test case for using an udev monitor with a filter

This is a first attempt to reproduce https://launchpad.net/bugs/1336671, but
this works fine.