Add test for serialization for adapters with root by default