Added test support to reffind