Added test for interrupt handling