Test global_id works