Testing Optimization in Service Ecosystems