Implement service error unit testing