globals test not working