PEP8 fixes in astropy.tests