service: Added mock infrastructure for service tests.