Implement simple CardService and tests.