make sure to close source when finishing test to avoid tests (that might modify the source) from clobbering each other
add an invalid image test
one more invalid image test