Added tests to ensure copied references are consistent