add unit test for global bindings