Adding unit tests for cards.