schema: add IsGlobal and associated tests

Please