Unit tests for service exceptions.