fix test serializer configuration and make document adapter tests pass