Fixing function_ref test