Add rudimentary tests for ioreg