really fix sense of imask (they are really ienable lines).
extend tests to partially cover timer and interrupts.