Iterating on test to extract pixel values