add test for following global references