Test program to compute kspace error.