Serialize cards using generic serializer and test refs #10.