Add unit testing capabilities and basic tests for check_for_usbdevice