Finished adding tests for the _d* functions.
Merge pull request #37 from schodge/d_tests

TESTS: Add tests for the _d* functions.