Add a test for deep referencing.
Support deep referencing.