Added d2 tests.