Add a unit test for the credit card class.