Fixed attribute error in astropy.wcs.WCS.wcs added a test to check the pix2world method