avoid polluting unnamed register (Fix #9)
add test to ensure to fix #9
Merge branch 'fix/unamed_register'