Tests for diff library