test(dccd): Add a test for swapping references

closes #1158