test code to check interrupts