wrote some tests for nhd