tests for ref-graph and uninitialized references, still not all fixed