Add from_ref test