Update unit tests to new ISR behaviour
This also fixes a bug in `hwaccess::change_stub()` where the stub is not initialized correctly.