don't forget NULL pointers in the unit test files
do generate output (empty) file for NULL pointers
don't write image2d pointer to test files