Fixed bug in gpio_irq_api

Test interruptin now works. Fixes #16