Update cross-correlation function
Change ref, trans
Update cross-correlation test function