improve diff-tests.ts