cards: Add test cases.