Add the test script from RT#53182

This seems to have been fixed, probably by the change to use
sv_unmagic()