specify default serializer for doc adapter and fix inverse for history model in test env