add test for service + correct min bug
abstract simple case to put more complexe cases