adapt test cases