Fix test cases.