Add test to see if references are cloned correctly.