testing prepare function on term reference mapping