ref_test now uses the real thing.
wrapFunction -> makeValueFunction.