Registered serialization hooks and removed some unittests that do not test weakly consistency