Re-write the test so that checking if the image is decoded takes place in the child