ioreg: Add simple testcases
ioreg: Remove 'static from documentation example