Extract creation of test service.
Subscribe to service statuses in tests.

Tests rely on being able to wait for analysis completion.
Implement conversion back from Enum to Google CONSTANTS.