Add creditCardFormatting with tests