making test compatible w.r.t. grid