Introduce JUnit tests for MetricNDS