Test hdu= option in mosaic and fix tests