Add HUnit tests for D