tests for global api