Fix testing for global