adapted existing test cases