Goodness of fit for lattice processes