add tests for C global support