add tests for card