Replace CardTest class by TestCardClass class by unittest