Refactor notebook_diff.py tests into a separate file.