API test updates for SortedDocument, fixed some serializer validation