Further debugging of the calc_footprint and block_reduce_hdu functions in gammapy.image and updates test cases