Adding tests for grid to thrust