test-device: add support for irq injection