Adjust test for Storable leak

Some versions of Storable seem to leak when dying in a freeze hook
(see RT #97316). Create an extra object for the freeze test so that
subsequent tests won't be confused by an increased refcount.
Define a custom class for thaw test object

On my platform, the local DESTROY method used for the thaw test
didn't have an effect resulting in a warning during cleanup.