Another fix for set_inverse_instance; fixing the serialization test; still requires you to re-generate a new serialized file before running the tests