Fix equivalence test for key name
Fix version
Add extra debug info
Export scoped variables