implement isCreditCard
add tests for credit card and fix bugs