tests for img -> numpy.array