Testing image data structures