Suddenly can no longer run test (due to breaking `]add Package` midway?)

It does indeed look like you have a corrupted, probably truncated, registry file. You can probably solve it with

pkg> registry remove General
pkg> registry add
1 Like