Add some tests for subinterrupt management.
Merge pull request #149 from unknownbrackets/intrman

Add some tests for subinterrupt management