add routines so that effects of grid cutoffs can be automatically tested
(#387)