dynd: add comparison test

cc @mwiebe