new test for dcd and small bugfix identified by test