Note that in current implementation of GridDataSource (which is the default index for ImagePlots) you need to be careful about what you provide as the x and y arrays: they need to be the coordinates of the edges of the mapped pixels of the image, and so you need one more value in the index arrays than the image has pixels.

This sucks, and should probably be fixed somehow.

But right now it means that you have a problem with the tests.