Add a test sample of perfect forwarding and reference collapsing