Fixed broken unit tests for D.
Merge pull request #120 from workhorsy/master

Fixed broken unit tests for D.