added unit tests for Global service