junit tests for grid