Improved error handling and tests for SinglyService.