Add extra tests for non-None-ness in test_classes

Some weird errors are happening in tests, where the image, or
image.pixels, is None. So, we assert that both are not None so that
tests fail rather than error out.

 Changes to be committed:
	modified:   tests/test_classes.py