Add global.bind method and tests