Add a test from pyfits that was never copied over for some reason (https://github.com/spacetelescope/PyFITS/blob/master/lib/pyfits/tests/test_core.py#L718)
Merge pull request #2858 from embray/fits/missing-test

Add missing test from PyFITS