Add rudimentary tests for ioreg

I'd prefer to see hamcrest/shiny in here, the tests are getting more readable and they're deps already anyway.