Adds tests for resolving missing references when writing cdl