Add test for serializer_cls