fix diff and test case