update test case to show when clone of ref is useful