fix the defineCase test - caseService