added test case for card api