[form] add some unit tests for CreditCardType.