testing callback on term reference mapping