test(dccd): Add a test for swapping references

closes #1158

Closes #1253