setCard function is tested.