Add rudimentary tests for ioreg

Ok, sorry, those are not in tree yet, they are in a dedicated PR now, though: https://github.com/hackndev/zinc/pull/131. You can extract 0d138bc or just wait for me to merge that one.