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