wrote some test for the card to string method