Added new test for references.