Fix some minor issues with astropy.test()

This came up while I was looking into #1811, but isn't directly related.  This skips a doctest in the table module for now that I think should be skipped until and unless we have a way to sandbox writes that doctests make to the filesystem.  The other is an old test file that I accidentally restored when I rebased an old pull request.