Add tests for references to subexpressions.