Add test for setting global table mask