improve test coverage for serializers