Support offline service tests

This allows service tests to run offline.