started adding some unit tests for the card stuff